﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DomainModel.Abstract;
using System.Configuration;
using System.Data.Objects;
using System.Data;
using System.Data.Entity;
using DomainModel.Entities;
using DomainModel.Context;

namespace DomainModel.Concrete
{
    public class SqlFileHostRepository : Repository<FileHost>
    {
        public SqlFileHostRepository()
            : base(new SLUDbContext())
        {

        }

        public virtual FileHost GetActive()
        {
            return _dbSet.FirstOrDefault(f => f.IsActive == true);
        }
    }
}

